package com.dh.project.service.impl;

import com.baomidou.framework.service.impl.SuperServiceImpl;
import com.dh.project.mapper.OrderInfoMapper;
import com.dh.project.model.OrderInfo;
import com.dh.project.service.OrderInfoService;
import com.dh.project.view.OrderDetailView;
import com.dh.project.view.OrderListView;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by admin on 2017/3/29.
 */
@Service
public class OrderInfoServiceImpl extends SuperServiceImpl<OrderInfoMapper,OrderInfo> implements OrderInfoService {

    @Autowired
    private OrderInfoMapper orderInfoMapper;

    @Override
    public List<OrderListView> selectOrderListByMap(Map map) {
        return orderInfoMapper.selectOrderListByMap(map);
    }

    @Override
    public OrderDetailView selectOrderDetailByMap(Map map) {
        return orderInfoMapper.selectOrderDetailByMap(map);
    }
}
